﻿using Server.Framework.Message;
using SuperSocket.SocketBase.Protocol;

namespace Server.Framework.Socket
{
    /// <summary>
    /// Author: Leil
    /// Description: 请求信息
    /// CreateTime: 2020/5/11 15:29:20
    /// </summary>
    public class ProtobufRequestInfo : IRequestInfo<RequestBaseMessage>
    {

        /// <summary>
        /// 消息体
        /// </summary>
        public RequestBaseMessage Body { get; }

        public string Key { get; }

        public ProtobufRequestInfo(RequestBaseMessage body)
        {
            Key = body.MsgId.ToString();
            Body = body;
        }
    }
}
